package com.yd.sinjutech.service.impl;

import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yd.sinjutech.entity.Login;
import com.yd.sinjutech.entity.User;
import com.yd.sinjutech.mapper.LoginMapper;
import com.yd.sinjutech.mapper.UseableMapper;
import com.yd.sinjutech.service.LoginService;

@Service
public class LoginServiceImpl implements LoginService {

	@Autowired
	private LoginMapper loginMapper;
	
	@Autowired
	UseableMapper userMapper;
	
	
	@Override
	public Login login(Login login) {

		Login dblogin = loginMapper.login(login.getLogin());
			
		return dblogin;
	}


	@Override
	public Set<String> getUrls(int role_id) {
		
		return userMapper.getUrls(role_id);
	}

}
